package kr.co.redcircle.console.dialog.contents;

import kr.co.redcircle.console.dialog.ConsoleDialogContents;

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CLabel;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import org.eclipse.wb.swt.SWTResourceManager;

public class AddNodeDialogContents extends ConsoleDialogContents {
	
	private Text text;

	public AddNodeDialogContents(Composite parent, int style) {
		super(parent, style);
	}
	

	public AddNodeDialogContents(Composite parent, Integer style, Point dialogSize, Rectangle contentsBound) {
		super(parent, style, dialogSize, contentsBound);
	}



	@Override
	public void createContents(Shell parent) {
		
		CLabel lblNodetype = new CLabel(parent, SWT.NONE);
		lblNodetype.setImage(SWTResourceManager.getImage(this.getClass(), "/kr/co/redcircle/icons/bullet-red.ico"));
		lblNodetype.setBounds(10, 10, 82, 21);
		lblNodetype.setText("Type");
		
		Combo combo = new Combo(parent, SWT.READ_ONLY);
		combo.setItems(new String[] {"MonitorNode", "WorkerNode"});
		combo.setBounds(98, 10, 110, 23);
		combo.setText("WorkerNode");
		
		CLabel lblId = new CLabel(parent, SWT.NONE);
		lblId.setText("ID");
		lblId.setImage(SWTResourceManager.getImage(this.getClass(), "/kr/co/redcircle/icons/bullet-red.ico"));
		lblId.setBounds(10, 37, 82, 21);
		
		text = new Text(parent, SWT.BORDER);
		text.setBounds(98, 37, 110, 21);
		
		CLabel lblActive = new CLabel(parent, SWT.NONE);
		lblActive.setText("Active");
		lblActive.setImage(SWTResourceManager.getImage(this.getClass(), "/kr/co/redcircle/icons/bullet-red.ico"));
		lblActive.setBounds(10, 64, 82, 21);
		
		Button btnAllowActive = new Button(parent, SWT.CHECK);
		btnAllowActive.setBounds(98, 67, 94, 16);
		btnAllowActive.setText("Allow active");
		
		Button btnCancel = new Button(parent, SWT.NONE);
		btnCancel.setBounds(132, 107, 76, 25);
		btnCancel.setText("Cancel");
		
		Button btnOk = new Button(parent, SWT.NONE);
		btnOk.setBounds(50, 107, 76, 25);
		btnOk.setText("Ok");
	}


	@Override
	public void setupMessageContents() {
		// TODO Auto-generated method stub
		
	}

}
